﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace Unleashed.AutoUpdate.IO.Configuration
{
    [Serializable]
    [XmlRoot("dialog")]
    internal class DialogConfigSection
    {
        public enum DialogType
        {
            Ok,
            OkCancel,
            YesNo,
            AcceptReject
        }

        [XmlText]
        public string Content { get; private set; }

        [XmlAttribute("title")]
        public string Title { get; private set; }

        [XmlAttribute("stopOnCancel")]
        public bool StopOnCancel { get; private set; }

        [XmlAttribute("dialogType")]
        public DialogType Type { get; private set; }
    }
}